package com.cybertron.lockdown.spider;

import com.cybertron.lockdown.spider.domain.Site;
import us.codecraft.webmagic.Page;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;

/**
 * Created by xiezhouyan on 15-1-13.
 */
public abstract class SpiderListener {

    private final Site site;

    public SpiderListener(Site site) {
        this.site = site;
    }

    protected Site getSite() {
        return this.site;
    }

    public abstract void pageProcess(Page page);

    public abstract void pipelineProcess(ResultItems items, Task task);
}
